<template>
    <div>
        <el-form :model="form">
            <el-form-item label="">
                <el-input v-model="form.key" style="width: 200px;"></el-input>
                <el-button type="primary" @click="search" style="margin: 0px 30px;">搜索</el-button>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
import axios from 'axios'
export default {
    data() {
        return {
            form:{}
        }
    },
    methods: {
        search() {
            let data=[{'name': 'ddd', 'get': 'yyy', 'age': 15}]
            this.$emit('getData', data)
        }
    },
    computed: {

    },
    created() {

    }
}
</script>

<style scoped>
.el-form{
    float: right;
}
</style>
